{% extends "Common/AdminBase.html" %}
{% load filters %} 
{% block Location %}

<li class="current">文章列表</li>
<script>
Nav_Page="Article";
</script>

{% endblock %}


{% block content %}
 
 <input type="button" value="新建文章" alt="请选择模版"  dataType="DialogAjax" dataval="/AdminMain/Article/Template/" class="btn">
 
<script type='text/javascript' src='/site_media/admin/My97DatePicker/WdatePicker.js'></script>
<div class="contentcontainer">
	
            <div class="headings altheading">
                <h2>文章列表</h2>
            </div>
            <div class="contentbox">
             <form id="formAccount" action="#" AjaxForm="/AdminMain/Article/List/" AjaxSuccess="#divAccount">
            	<div class="extrabottom" style="padding-top:0px; background:url(none)">
            		
                    <div class="bulkactions" >
                		
						文章标题：<input type="text" name="Title" style="width:100px;padding:7px" id="Title" class="inputbox smallbox">
						
						
						&nbsp;&nbsp;
						栏目：
						
						<input type="text" name="ArticleTypename" class="inputbox smallbox"  readonly  style="width:70px;" id="ArticleTypename"  dataType="DialogAjax" dataval="/AdminMain/ArticleType/Tree/" alt="选择分类" >
						 <input type="hidden"   id="ArticleTypeid" name="ArticleTypeid" >
							&nbsp;&nbsp;
						模版：
                    	<select name="TemplateId" style="width:75px;padding:7px">
                    	
                        	<option value="-1">全部</option>
                  
						    {% for  info in Model.TemplateEnum  %}
							      
								  {% ifnotequal  forloop.counter0 0 %}   
                    	           <option value="{{forloop.counter0}}">{{info}}</option>
                    	          {% endifnotequal  %}
						    {%  endfor  %}
                        </select>
						
						&nbsp;&nbsp;状态：
                    	<select name="State" style="width:75px;padding:7px">
                    	
                        	<option value="-1">全部</option>
                  
						    {% for  info in Model.StateEnum  %}
						         <option value="{{forloop.counter0}}">{{info}}</option>
				
						    {%  endfor  %}
                        </select>
				
						
						 <input type="submit"  value="查 询" class="btn">
						 <br/> <br/>
						<!--创建时间：<input style="width:120px;"  type="text" id="openTime" name="openTime"  onFocus="WdatePicker({maxDate:'#F{$dp.$D(\'endTime\',{d:-1});}'})" class="Wdate"  >&nbsp;到&nbsp;
						<input style="width:120px;"  type="text" id="endTime" name="endTime" onFocus="WdatePicker({minDate:'#F{$dp.$D(\'openTime\',{d:2});}'})" class="Wdate"  >
						-->
						
                       
                    </div>
                </div>
               <div id='divAccount'></div>
               
                <div style="clear: both;"></div>
				   </form>
				  <script>
					$(function(){
						//初始化加载
						AjaxFormExec($("#formAccount"))
					})
					$("#a_time").bind("click",
					function ()
					{
    				 art.dialog({
       					 	title: "创建时间",
       						 id: "divTime",
        					fixed: true,
        					lock: true,
        					content: document.getElementById("divTime"),
        					resize: false
   					 		});
					})
					
					$("#delopenTime").bind("click",
					function ()
					{
    				 getCurrentDialog(this).close();
					 $("#endTime").val("");
					 $("#openTime").val("");
					})
					
					function OnTree(val,name)
					{
						$("#ArticleTypeid").val(val);
						$("#ArticleTypename").val(name);
					}
					
				  </script>
               </div>
          
        </div>
{% endblock %}



